<?php if(!defined('ROOT_PATH')) exit('Access Denied');?><div class="box">
<div class="box-title">
<h3>用户编辑</h3>
<span></span>
</div>
<div class="box-content">
<form action="/admin.php/Admin_Users/edit" method="post" name="edit_admin" id="edit-admin">
<ul id="add-post-option">
<li>
<label for="edit-user-name" class="add-post-label">用户名：</label><span class="userstr"><?php echo $admindata["name"];?></span>
</li>
<li>
<label for="edit-user-pw" class="add-post-label">密码：</label>
<input id="edit-user-pw" name="password" type="password" value="" class="add-post-text" autocomplete="off">
如果您不想修改密码，请保留此项为空。
</li>
<li>
<label for="edit-user-email" class="add-post-label">邮箱：</label>
<input id="edit-user-email" name="email" type="text" value="<?php echo $admindata["email"];?>" class="add-post-text" autocomplete="off">
</li>
<li>
                <label for="edit-user-group" class="add-post-label"></label>
<input type="hidden" name="uid" value="<?php echo $admindata["id"];?>" />
<input type="submit" id="edit-admin-submit" name="edit-admin-submit" value="编辑" />
</li>
</ul>
</form>
</div>
</div>
<script>
$('#edit-admin').ajaxForm({
beforeSubmit: function(){
$("#edit-admin-submit").attr('disabled',true);
},
success: function(data){
if(data=='ok!') {
showMessage('修改成功！','tips');
ajaxLoad('/admin.php/Admin_Users');
$("#edit-admin-submit").attr('disabled',false);
} else {
showMessage('修改失败！','error');
}
}});
</script>